package com.ruoyi.system.mapper.news;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.news.NewsInfo;
import com.ruoyi.system.domain.news.query.NewsInfoQuery;
import com.ruoyi.system.domain.news.vo.NewsInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NewsInfoMapper extends BaseMapper<NewsInfo> {
    /**
     * 获取单个文章信息
     * @param newsInfoQuery
     * @return
     */
    NewsInfoVo getNewsInfo(@Param("newsInfoQuery") NewsInfoQuery newsInfoQuery);

    /**
     * 搜索文章信息列表
     * @param newsInfoQuery
     * @return
     */
    List<NewsInfoVo> getNewsInfoList(@Param("newsInfoQuery") NewsInfoQuery newsInfoQuery);
}
